import pandas as pd

# 该程序运行后生成同名.csv文件,包括了电影代号与其对应的年份与类型信息
year = pd.read_csv(r"DSProject\csv\summer_movies.csv")[["tconst", "year"]]
genres = pd.read_csv(r"DSProject\csv\movie_genre.csv")
year_genres = pd.merge(year, genres, how="right")
year_genres.to_csv(r"DSProject\csv\year_genres.csv", index=False)
